import {requestService} from '/src/utils/request'

// 查询策略列表
export function getStrategyList(queryParams) {
    return requestService({
        url: '/xiaozhen-system/alarmStrategy/list',
        method: 'get',
        params: queryParams
    })
}

// 新增策略
export function addStrategy(data) {
    return requestService({
        url: '/xiaozhen-system/alarmStrategy/add',
        method: 'post',
        data: data
    })
}

// 修改策略
export function updateStrategy(data) {
    return requestService({
        url: '/xiaozhen-system/alarmStrategy/update',
        method: 'put',
        data: data
    })
}

// 删除策略
export function delStrategy(strategyId) {
    return requestService({
        url: '/xiaozhen-system/alarmStrategy/' + strategyId,
        method: 'delete'
    })
}
